// Ballot.java
//
// ICS 22 / CSE 22 Winter 2010
// Project #1: Perfect Candidate
//
// The Ballot class encapsulates the idea of a ballot, which consists of
// two parts: the name of the office being voted upon and a list of the
// candidates running for that office.

import java.util.ArrayList;

public class Ballot {
	// The constructor takes an office name as a parameter and initializes
	// a newly-created Ballot.
	private String m_officeName;
	private ArrayList<Candidate> m_candidates;
	public Ballot(String officeName) {
		// TODO not sure if ctor is finished, possibly done
		m_officeName = officeName;
		m_candidates = new ArrayList<Candidate>();
	}

	// getOfficeName() returns the name of the office being voted upon.
	public String getOfficeName() {
		return m_officeName;
	}

	// addCandidate() takes a Candidate as a parameter and adds that
	// candidate to the ballot.
	public void addCandidate(Candidate c) {
			m_candidates.add(c);
	}

	// getCandidates() returns an ArrayList of all of the candidates
	// on the ballot.
	public ArrayList<Candidate> getCandidates() {
		return m_candidates;
	}
}
